package com.lfz.quality_effect.service;

import com.lfz.quality_effect.model.entity.TIndexScore;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lfz.quality_effect.model.vo.*;
import com.lfz.quality_effect.utils.ResultData;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 指标得分表 服务类
 * </p>
 *
 * @author Destiny
 * @since 2023-03-03
 */
public interface TIndexScoreService extends IService<TIndexScore> {

    /**
     * 上传指标得分项
     * @param file
     */
    void uploadIndexItemScore(MultipartFile file,String court,String dataTime);

    List<ScoreRankVO> getScoreRank();

    /**
     * 获取非满分指标
     * @return
     */
    NonPerfectIndexVO getNonPerfectScoreInfo();

    /**
     * 获取速裁快审指标
     * @return
     */
    ResultData getJudgeQuicklyScoreInfo(String name);

    /**
     * 电子送达率
     * @param name
     * @return
     */
    ResultData getElectronicDeliveryScoreInfo(String name);

    /**
     * 获取指定法院的预警信息
     * @param court
     */
    List<EarnWarnVO> getEarnWarningInfo(String court);

    /**
     * 趋势图
     * @param startTime
     * @param endTime
     * @return
     */
    Map<String, List<EleScoreRankVO>> electronicDeliveryTrand(String name, String startTime, String endTime);

    /**
     * 速裁快审趋势图
     * @param name
     * @param startTime
     * @param endTime
     * @return
     */
    Map<String, List<EleScoreRankVO>> quicklyJudgeTrend(String name, String startTime, String endTime);
}
